package com.cokoyan.game.afts;

import com.cokoyan.game.afts.GameView.GameThread;

import android.app.Activity;
import com.cokoyan.game.afts.R;

import android.media.AudioManager;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;

public class main extends Activity {
    /** Called when the activity is first created. */
    /** A handle to the thread that's actually running the animation. */
    private GameThread mGameThread;
    /** A handle to the View in which the game is running. */
    private GameView mGameView;
    //private GameData mGameData;
    

    
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); 
        setVolumeControlStream(AudioManager.STREAM_MUSIC);

        setContentView(R.layout.maingame);
        
        mGameView = (GameView) findViewById(R.id.game);
        
        mGameThread = mGameView.getThread();
        

        // set up a new game
        mGameThread.setSound(true);
        mGameThread.setVibration(true);
        mGameThread.setState(GameThread.STATE_READY);
    }
    
}